﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;

namespace RobotCleaner
{
    class CleanDebug
    {
        #region 输出调试信息
        /// <summary>
        /// 输出调试参数
        /// </summary>
        /// <returns></returns>
        public void outputDebug(RichTextBox richTextBox,Robot r)
        {
            //richTextBox.Text += "Robot: Wid:" + r.R_Width.ToString() +
            //                               "\nRobot: Hei:" + r.R_Height.ToString() + "\n" +
            //                               "R_X:" + r.get_R_X() +
            //                               "\nR_Y:" + r.get_R_Y() + "\n\n" +
            //                               "====================" +
            //                               r.get_R_X().ToString() + ":" +
            //                               r.get_R_Y().ToString() + "\n" +
            //                               Convert.ToString(r.get_R_X() + r.R_Width) + ":" +
            //                               Convert.ToString(r.get_R_Y() + r.R_Height) + "\n" +
            //                               "dir:" + r.get_direction() +
            //                               "====================\n";
        }
        public void outputDebug02(RichTextBox richTextBox, Robot r)
        {
            richTextBox.Text += "\nPoint2：(" + (r.get_R_X() - r.R_Width).ToString()
                                      + "," + (r.get_R_Y() + r.R_Height).ToString() + ")";
        }
        public void outputDebug03(RichTextBox richTextBox, Robot r)
        {
            //richTextBox.Text += "\n" + r.SGoStep;
        }
        #endregion 
    }
}
